package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.Id;
import com.ndp.fb.rdb.annotation.NoSave;
import com.ndp.fb.rdb.annotation.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @Author: Evan on 12/22/2015  17:27.
 * Email: evan.wan@ndpmedia.com
 */
@Setter
@Getter
@NoArgsConstructor
@Table("business_app")
public class BusinessManagerApp implements Serializable {
    /**
     * id
     */
    @Id
    private Long id;
    /**
     * fb_connection_object_id
     */
    @Column(value = "fb_connection_object_id")
    private Long fbConnObjId;
    /**
     * access_status
     */
    private String accessStatus;
    /**
     * access_type
     */
    private String accessType;
    /**
     * fb_business_id
     */
    private Long fbBusinessId;
    /**
     * 与mysql无对应关系
     */
    @NoSave
    private Long fbUserId;
    /**
     * 与mysql无对应关系
     */
    @NoSave
    private Boolean isDelete;

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }
    public void setIsDelete(Boolean delete) {
        isDelete = delete;
    }
}
